<script setup lang="ts">
import { RouterLink, RouterView } from 'vue-router'
import HelloWorld from './components/HelloWorld.vue'
</script>

<template>
<RouterLink to="/">首页</RouterLink>
<RouterLink to="/about">关于</RouterLink>
<RouterLink to="/sport">Vue的常用语法</RouterLink>
<RouterLink to="/demo1">也是Vue的常用语法</RouterLink>
<RouterLink to="/news">练习</RouterLink>
  <RouterView />
</template>

<style scoped>
a{
  margin-right: 20px;
}
</style>
